projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d274df
)
XendAPIStore - do not remove non-existent item
author
Keir Fraser
<keir.fraser@citrix.com>
Wed, 4 Feb 2009 11:57:17 +0000
(11:57 +0000)
committer
Keir Fraser
<keir.fraser@citrix.com>
Wed, 4 Feb 2009 11:57:17 +0000
(11:57 +0000)
If list is searched and item not found, then don't attempt to delete
the item.
Signed-off-by: Jim Fehlig <jfehlig@novell.com>
tools/python/xen/xend/XendAPIStore.py
patch
|
blob
|
history
diff --git
a/tools/python/xen/xend/XendAPIStore.py
b/tools/python/xen/xend/XendAPIStore.py
index 372509d695034621282e4294df6cfcfa3a479aae..dc313717dd66f43fa4c5bb89313c26c1e9c75298 100644
(file)
--- a/
tools/python/xen/xend/XendAPIStore.py
+++ b/
tools/python/xen/xend/XendAPIStore.py
@@
-33,7
+33,8
@@
def register(uuid, type, inst):
def deregister(uuid, type):
old = get(uuid, type)
- del __classes[(uuid, type)]
+ if old is not None:
+ del __classes[(uuid, type)]
return old
def get(uuid, type):